Skip to content

Conversation

@luigidellaquila
Copy link
Contributor

@luigidellaquila luigidellaquila commented Jun 19, 2025

Fixes: #129453

@luigidellaquila luigidellaquila added >test Issues or PRs that are addressing/adding tests auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Analytics/ES|QL AKA ESQL labels Jun 19, 2025
@elasticsearchmachine elasticsearchmachine added v9.1.0 Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) labels Jun 19, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

@luigidellaquila luigidellaquila enabled auto-merge (squash) June 19, 2025 14:50
@luigidellaquila luigidellaquila removed the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Jun 19, 2025

if (previousOutput.size() > limit && output.size() != limit || defaultLimit && previousOutput.size() < output.size()) {
return new ValidationResult(false, "Expecting [" + limit + "] records, got [" + output.size() + "]");
if (output.size() > limit) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity, which queries weren't deterministic in the number of rows?

Copy link
Contributor Author

@luigidellaquila luigidellaquila Jun 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the queries that have a very early LIMIT are very non-deterministic, eg.

FROM idx
| LIMIT 10
| WHERE <something>
| LIMIT 10

the WHERE condition receives very few (random) records, at every run I expect zero to ten (different) results.

This said, in the CI I found some very suspicious queries that I'm investigating now, but for the general case I don't think we can do better than this for now

@luigidellaquila luigidellaquila merged commit 0dba163 into elastic:main Jun 19, 2025
27 checks passed
kderusso pushed a commit to kderusso/elasticsearch that referenced this pull request Jun 23, 2025
mridula-s109 pushed a commit to mridula-s109/elasticsearch that referenced this pull request Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) >test Issues or PRs that are addressing/adding tests v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] GenerativeIT test failing

4 participants